const express = require('express')
const router = express.Router()
const activity_handler = require('../router_handler/activity')
const expressJoi = require('@escook/express-joi');
const {
	updateActivity_schema,
	addActivity_schema,
	deleteActivity_schema
} = require('../schema/activity');

// 获取权限列表
router.get('/getActivityList', activity_handler.getActivityList)

// 更新权限
router.post('/updateActivity', expressJoi(updateActivity_schema), activity_handler.updateActivity)

// 添加权限
router.post('/addActivity', expressJoi(addActivity_schema), activity_handler.addActivity)

// 删除权限
router.post('/deleteActivity', expressJoi(deleteActivity_schema), activity_handler.deleteActivity)

module.exports = router